package com.umeng.soexample.mvp.model;

import com.umeng.lib_core.http.MResponseManager;
import com.umeng.lib_core.mvp.model.BaseModel;
import com.umeng.soexample.bean.AddressListEntity;
import com.umeng.soexample.bean.CarListEntity;
import com.umeng.soexample.bean.CouponListEntity;
import com.umeng.soexample.mvp.contract.AffirmOrderFragmentContract;
import com.umeng.soexample.network.API;

import javax.inject.Inject;

import io.reactivex.Observable;

public class AffirmOrderFragmentModel extends BaseModel implements AffirmOrderFragmentContract.AffirmOrderFragmentIModel {
    @Inject
    public AffirmOrderFragmentModel() {}

    @Override
    public Observable<AddressListEntity> address_list(String request) {
        return MResponseManager.obtainRetrofit(API.class).address_list_request(request);
    }

    @Override
    public Observable<CouponListEntity> coupon_list(String request) {
        return MResponseManager.obtainRetrofit(API.class).coupon_list_request(request);
    }

    @Override
    public Observable<CarListEntity> car_list(String request) {
        return MResponseManager.obtainRetrofit(API.class).car_list_request(request);
    }

    @Override
    public void destroy() {

    }
}
